package org.zhigong.service;

import org.springframework.stereotype.Service;
import org.zhigong.entity.Chuqin;

import java.util.List;

/**
 * Created by Administrator on 2018/3/28 0028.
 */
@Service
public interface ChuqinService {
    /**
     * 根据日期获取一天的出勤记录
     * @param chuqin
     * @return
     */
    Chuqin getOndDay(Chuqin chuqin);

    /**
     * 获取出勤列表
     * @param chuqin
     * @return
     */
    List<Chuqin> getChuqinList(Chuqin chuqin);

    /**
     * 添加出勤记录
     * @param chuqin
     * @return
     */
    Boolean addChuqin(Chuqin chuqin);

    /**
     * 删除出勤记录
     * @param chuqin
     * @return
     */
    Boolean deleteChuqin(Chuqin chuqin);

    /**
     * 更新出勤记录
     * @param chuqin
     * @return
     */
    Boolean updateChuqin(Chuqin chuqin);
}
